<script>
  export default {
    onLaunch: function () {
      console.log('App Launch')
      // 获取用户上次存储的语言设置
      const userLanguage = uni.getStorageSync('userLanguage')
      if (userLanguage) {
        uni.setLocale(userLanguage)
      }
    },
    onShow: function () {
      console.log('App Show')
    },
    onHide: function () {
      console.log('App Hide')
    }
  }
</script>

<style>
  /*每个页面公共css */
</style>
